package com.ruoyi.system.mapper;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    // 使用 @Select 注解执行查询
    @Select("SELECT * FROM t_inner_own_interface WHERE id = #{id}")
    @DataSource(DataSourceType.SLAVE)
    Map findUser(String id);
}
